home *** CD-ROM | disk | FTP | other *** search
- * <--- The splat indicates black color so this line is written in black.
- The *[Y] indicates to read a key and display following lines,
- if a Y response is recieved.
- Syntax : *[uppercase character]
- Examples: *[Y] *[N] *[Q]
-
- The following variables can be changed on the response line:
- Variable Range Functions
- c charm/personality 0-10 > add 1
- d cash in hand 0-up < sub 1
- f fights 0-50 ] add 5
- h hit points 0-250 [ sub 5
- m max hit points 0-250 } add 10
- n defense (luck) 0-4 { sub 10
- p power 0-16 x double
- s skill 0-10 / split (tosses the remainder)
- 0 zero variable
-
- You can use these in any *.MEN file in Underworld Version 1.0, and the
- language is case sensitive!
-
- *Example no.1 addition
- *This menu will prompt the user for a Y or N response
- *If answered Yes it will heal the play to Max and give them 200 dollars
- * D means to start with the cash they have and each } means add 10 to it
- * d tells it to place that value into the cash value.
- *REMBER!! color codes are ~ @ # $ % ^ & + * Avoid using except for color!
- +^Want to be healed? ^[y/N]
- *[Y] Mh D}}}}}}}}}}}}}}}}}}}}d
- +$You now have all your hitpoint and 200 dollars!
- *ELSE <-- This command will display the other line below if Y wasn't pressed
- +% SUCKER!!
- * Blank line
-
- *Example no.2 Zero a value
- *This menu will prompt the user for a Q to quit then sets the
- *hitpoints to zero thereby killing the player.
- Do you wish to quit? [q/N]
- *[Q] 0h
- *To give the player a set number of hit points you can start at zero and
- *add them Ex: 0 } ] > > h would start at zero give the player 17 hitpoints
- * 0 = start with a value of zero } = add 10 ] = add 5 > = add 1
- * > = add 1 h = place value in hitpoints.
-
- *NOTE: All values must either start 0, C, D, F, H, M, N, P or S.
- * Values are only changed when c, d, f, h, m, n, p or s is used.
-
- *Example no.3 Moving Values
- *This shows how to transfer a value into another. The uppercase value
- *shows where to start. Here we give the player 8 times hitpoints in cash.
- You have found a +@lottery ticket+&, to see if you have won
- just press a key from A to Z!
- *[G] H x x x d
- +@YOU +^WON!
- * As you can see the [G] is the secret key and should be change once in a
- * while. We start with a value of H and double it 3 times.
- * (Ex: 10 x 2 x 2 x 2 = 80) This would be unfourtunate if the player is
- * holding over 80 dollars in his hand, since that money would disappear.
- * It would be better to double the money they have like this:
- *[G] D x d
- *ELSE
- +$You lost.
-
- Well that's about it, I have listed the source code for the procedure below
- to help you understand it any better. I hope the Sysops like this feature
- and hope to do more with it in the future versions.
-
- SOURCE CODE IN PASCAL
- =====================
- while not eof (tempfile) do
- begin
- readln (tempfile,st);
- if copy (st,1,5) = '*ELSE' then
- dis_on := not dis_on; {Toggle Display}
- if (st[2] = '[') and (st[4] = ']') then
- begin
- sread_char (ch);
- if upcase (ch) <> st[3] then
- dis_on := false {Do not Display}
- else
- with caller[1] do
- begin
- for i := 5 to length (st) do
- begin
- case st[i] of
- 'C': a := charm;
- 'D': a := cash;
- 'F': a := fights;
- 'H': a := hitpts;
- 'M': a := maxhpt;
- 'N': a := defense;
- 'P': a := power;
- 'S': a := skill;
- '0': a := 0;
- end;
- case st[i] of
- '>': inc (a);
- '<': dec (a);
- ']': inc (a,5);
- '[': dec (a,5);
- '}': inc (a,10);
- '{': dec (a,10);
- 'x': inc (a,a);
- '/': a := a div 2;
- end;
- if a < 0 then
- {No value must drop below 0} a := 0;
- {Set Limits} case st[i] of
- {Charm no higher than 10 } 'c': if a<=10 then
- charm := a;
- {No limit on Cash } 'd': cash := a;
- {Fights per day 50 Max } 'f': if a<=50 then
- fights := a;
- {Hit Points 250 Max } 'h': if a<=250 then
- hitpts := a;
- {Max HP 250 Max } 'm': if a<=250 then
- maxhpt := a;
- {Defense or Dumb Luck 4 Max} 'n': if a<=4 then
- defense := a;
- {Power Bonus 16 Max } 'p': if a<=16 then
- power := a;
- {Job Skills 10 Max } 's': if a<=10 then
- skill := a;
- end;
- end;
- end;
- end;
- if dis_on then
- write_color (st);
- end;
- close (tempfile);
-
-
-
-
-
-
-
-
-